import {BasicColumn} from '/@/components/Table';
import {FormSchema} from '/@/components/Table';
import { rules} from '/@/utils/helper/validator';
import { render } from '/@/utils/common/renderUtils';
import { getWeekMonthQuarterYear } from '/@/utils';
//列表数据
export const columns: BasicColumn[] = [
  {
    title: '门店编码',
    align: "center",
    dataIndex: 'storeCode'
  },
  {
    title: '门店名称',
    align: "center",
    dataIndex: 'storeName'
  },
  {
    title: '所属客户',
    align: "center",
    dataIndex: 'customerId_dictText'
  },
  {
    title: '省市区',
    align: "center",
    dataIndex: 'province',
  },
  {
    title: '门店详细地址',
    align: "center",
    dataIndex: 'storeAddress'
  },
  {
    title: '门店地址经纬度',
    align: "center",
    dataIndex: 'storeCoordinates'
  },
  {
    title: '门店面积',
    align: "center",
    dataIndex: 'storeArea'
  },
  {
    title: '门店负责人',
    align: "center",
    dataIndex: 'storeManager'
  },
  {
    title: '门店负责人电话',
    align: "center",
    dataIndex: 'storeManagerPhone'
  },
];

// 高级查询数据
export const superQuerySchema = {
  storeCode: {title: '门店编码',order: 0,view: 'text', type: 'string',},
  storeName: {title: '门店名称',order: 1,view: 'text', type: 'string',},
  customerId: {title: '客户ID',order: 2,view: 'number', type: 'number',dictTable: "xl_customer_info", dictCode: 'id', dictText: 'customer_name',},
  province: {title: '省市区',order: 3,view: 'pca', type: 'string',},
  storeAddress: {title: '门店系统地址',order: 4,view: 'text', type: 'string',},
  storeCoordinates: {title: '门店地址经纬度',order: 5,view: 'text', type: 'string',},
  storeArea: {title: '门店面积',order: 6,view: 'text', type: 'string',},
  storeManager: {title: '门店负责人',order: 7,view: 'text', type: 'string',},
  storeManagerPhone: {title: '门店负责人电话',order: 8,view: 'text', type: 'string',},
};
